<link href="standar.css" rel="stylesheet" type="text/css">
<?php
include "../config/koneksi.php";
include "../class/order.php";
include "../class/konsumen.php";

$Order_Dao=new Order_Dao();
$list=$Order_Dao->get_status();

?>
<html>
<head>
<center>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td height="30""> 
      <div align="left"><font size="3" face="tahoma">Pesanan In Progres</font><br></font><hr color=#CCCCFF>
	  <br>
     </div></td>
  </table>
<table border=1 cellpadding=0 cellspacing=0 style=border-collapse: collapse width=100% id=AutoNumber1>
  <tr bgcolor="999999" align="center"> 
    <td height="24" width="4%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">No</font></div></td>
    <td width="16%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Tanggal</font></div></td>
    <td width="30%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Nama</font></div></td>
    <td width="20%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Order ID</font></div></td>
    <td width="20%" colspan="2"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Total</font></div></td>
    <td width="5%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Lihat Detil</font></div></td>
  </tr>
	<?php
	$i=1;
	foreach($list as $list2){
	$status=$list2->status;
	$Konsumen_Dao=new Konsumen_Dao();
    $konsumen=$Konsumen_Dao->get($list2->id_konsumen);
	echo"
	<tr> 
    <td height=24><div align=center><font size=2 face=tahoma>$i</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$list2->tanggal</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$konsumen->nama_pembeli</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$list2->orderid</font></div></td>
    <td><div align=right><font size=2 face=tahoma>Rp.</font></div></td>
    <td><div align=right><font size=2 face=tahoma>$list2->total&nbsp;</font></div></td>
    <td><div align=center><font size=2 face=tahoma><a href=index.php?menu=detilprogres&orderid=$list2->orderid><img src='../images/view.png' title='View'></a></font></div></td>

  </tr>";
  
	?>
<?php $i++;}
echo"</table>";
if(empty($list2)){
echo"<br><font face=tahoma size=2><div align=center>Tidak Ada Data Dalam Pesanan In Progress</div></font>";
}
?>
</body>
</html>